<template>
  <div>
    <h1>测试页面</h1>
    <hr />
    <p>{{ store.user }}</p>
    <button @click="changeUser">修改store中的user</button>
  </div>
</template>

<script setup lang="ts">
import { userUserStore } from '@/stores/modules/user'
const store = userUserStore()
const changeUser = () => {
  store.setUser({
    token: '123',
    id: '1',
    account: '',
    mobile: '',
    avatar: 'string'
  })
}
</script>
